<template>
  <div>
    <component :is="comName" @editRule="editRule" ref="rule"></component>
  </div>
</template>

<script lang="ts">
import { Vue, Component } from "vue-property-decorator";
import RuleContent from "./RuleContent.vue";
import EditRule from "./EditRule.vue";

@Component({
  components: {
    RuleContent,
    EditRule,
  },
})
export default class IntegralRule extends Vue {
  comName = "RuleContent";

  ruleOption: any = {};

  getList: any = [];

  editRule(ruleOption, getList) {
    this.ruleOption = ruleOption;
    this.getList = getList;
  }
}
</script>

<style lang="scss" scoped></style>
